package com.base.moduleUser.controller;

import com.base.core.common.http.response.AjaxResult;
import com.base.moduleUser.dto.RecordLocationDto;
import com.base.moduleUser.service.StandardLocationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class LocationController {


    @Autowired
    private StandardLocationService standardLocationService;


    @PostMapping("/virtual/user/updateUserTrack")
    public AjaxResult RecordLocation(@RequestBody RecordLocationDto recordLocationDto) {
        log.info("RecordLocationDto:{}", recordLocationDto);
        standardLocationService.recordLocation(recordLocationDto);
        return AjaxResult.success();
    }



}
